<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  2018/12/19 星期三
  <script type="text/javascript">
	function A(name, age) {
		this.name = name;
		this.age = age;
	}
	A.prototype.say = function() {
		console.log('say');
	};

	var aa = new A('aaaa', 123);
	aa.say();
	console.log(aa);
	
	aa.__proto__ = {
		box1: function() {console.log('__proto__.box1');},
		box2: function() {console.log('__proto__.box2');}
	};

	//aa.say();
	aa.box1();
	aa.box2();
	console.log(aa);
  </script>
 </body>
</html>
